package com.niit.mall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.niit.mall.order.domain.dto.OrderItemDTO;
import com.niit.mall.order.domain.po.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * @BelongsProject:pardo_mall_backendd
 * @BelongsPackage: com.niit.mall.order.mapper
 * @Author: XihenXi
 * @CreateTime: 2025-06-17  16:52
 * @Description: TODO
 * @Version: 1.0
 */

@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem> {

    @Select("SELECT product_id FROM tb_order_item WHERE order_id = #{id}")
    List<Long> queryProductIdByOrderId(@Param("id") Long id);

}
